/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;

  .product-card {
    width: 200px;
    margin: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
  }
  
  .product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .product-name {
    margin-top: 10px;
    font-weight: bold;
  }
  
  .product-price {
    margin-top: 5px;
    color: #4CAF50;
  }
}



.product-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.product-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-name {
  font-size: 24px;
  margin-top: 20px;
}

.product-price {
  font-size: 20px;
  color: #007bff;
  margin-top: 10px;
}

.product-quantity {
  font-size: 16px;
  color: #28a745;
  margin-top: 10px;
}

.product-description {
  margin-top: 20px;
  line-height: 1.6;
}

.product-average-rating {
  font-size: 24px;
  font-weight: bold;
  color: #ffa500;
  margin-top: 20px;
}

.add-to-wishlist,
.add-to-cart-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 20px;
  margin-right: 10px;
}

.add-to-wishlist:hover,
.add-to-cart-button:hover {
  background-color: #0056b3;
}

.comment-form {
  margin-top: 40px;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
}

.rate-input {
  font-size: 24px;
  color: #ffa500;
  margin-bottom: 10px;
}

.rate-input span {
  cursor: pointer;
}

.rate-input span.active {
  color: #ff8c00;
}

.comment-textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.comment-submit-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.comment-submit-button:hover {
  background-color: #218838;
}

.comments-list {
  margin-top: 40px;
}

.comment-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.comment-username {
  font-weight: bold;
  margin-right: 10px;
}

.comment-rating {
  color: #ffa500;
  font-weight: bold;
}

.comment-text {
  margin-top: 10px;
  line-height: 1.6;
}